/*
 * @(#)paymentServiceImpl.java 2013-4-10 ����01:36:55 Order
 */
package com.dingtalk.dingbotmgr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dingtalk.dingbotmgr.dao.BaseDao;
import com.dingtalk.dingbotmgr.dao.PaymentCategoryDao;
import com.dingtalk.dingbotmgr.model.PaymentCategory;
import com.dingtalk.dingbotmgr.model.Project;
import com.dingtalk.dingbotmgr.service.PaymentCategoryService;
import org.springframework.stereotype.Component;

/**
 * paymentCategoryServiceImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("paymentCategoryService")
public class PaymentCategoryServiceImpl extends BaseServiceImpl<PaymentCategory> implements PaymentCategoryService {

    @Resource(name = "paymentCategoryDao")
    private PaymentCategoryDao paymentCategoryDao;

    @Override
    protected BaseDao<PaymentCategory> getBaseDao() {
        return paymentCategoryDao;
    }

    @Override
    public List<PaymentCategory> listByProject(Project project) {
        return paymentCategoryDao.listByProject(project);
    }
}
